import http from '../http'

//列表数据
export const topApi = () => http({
    url: "/goods/select",
    method: "POST",
});

//删除
export const delTopData = (id) => http({
    url: "/goods/deleteGoods",
    method: "POST",
    params: {
        id
    }
});

//分页
export const pageApi = (page, size) => http({
    url: "/goods/selectGoodsByPage",
    method: "POST",
    params: {
        page, size
    }
})
